package com.star.controller;

import com.star.service.impl.BlogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * com.star.controller
 *
 * @Description:
 * @Date: 2020-08-11 18:28
 * @Author: LENSTAR
 * @URL: http://123.57.161.114:9000/
 */
@Controller
public class NewBlogData {

    @Autowired
    private BlogServiceImpl blogService;

    @GetMapping("/newBlog")
    public ResponseEntity newBlog() {
        return ResponseEntity.ok(blogService.getNewBlog());
    }
}
